﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using Marbles.Core.Content.CDN;

namespace Marbles.Core.Pages
{
    public class ForumPage : Page
    {

        protected override void OnPreInit(EventArgs e)
        {
            if (CurrentWeb == null) { return; }
            if (!string.IsNullOrEmpty(CurrentWeb.Theme))
            {
                this.Theme = string.Empty;
                string fullpath = HttpContext.Current.Server.MapPath(string.Format("~/App_Themes/{0}", CurrentWeb.Theme));
                if (System.IO.Directory.Exists(fullpath)) { this.Theme = CurrentWeb.Theme; }
            }

        }

    }
}
